package com.shiehub.sdk.opengw.util;

public class SoapXmlConcatUtil {

  public static String concat(String xml) {

    StringBuffer sb = new StringBuffer()
        .append(
            "<soapenv:Envelope xmlns:soapenv=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:ser=\"http://service.esb.opengw.shie.com/\">")
        .append("<soapenv:Header/>")
        .append("<soapenv:Body>")
        .append("<ser:call>")
        .append("<arg0>")
        .append("<![CDATA[" + xml + "]]>")
        .append("</arg0>")
        .append("</ser:call>")
        .append("</soapenv:Body>")
        .append("</soapenv:Envelope>");

    return sb.toString();
  }
}
